# encoding = utf-8
import os


def get_model_base_path():
    base_path = os.path.abspath(f"{os.path.expanduser('~')}/Huak-SecondNet-Model/outside_temperature")
    if not os.path.exists(base_path):
        os.makedirs(base_path)
        pass
    return base_path
    pass


def get_model_path_by_model_name(model_name):
    # 获取路径
    model_base_path = get_model_base_path()
    # 打印路径
    print(f"{model_base_path}")
    model_path = os.path.abspath(f"{model_base_path}/{model_name}")
    return model_path
    pass


if __name__ == '__main__':
    print(get_model_path_by_model_name("abc.pkl"))
    pass
